<template>
  <div class="text">
    <span class="title">{{index}}.{{question.title}}</span>
    <span class="title" v-if="question.isNecessary === true" style="color: salmon">*</span>
    <span class="type">&ensp;&ensp;&ensp;[填空题]</span><br>

    <span>{{question.content}}</span>
  </div>
</template>

<script>
export default {
  name: "Completion",
  props: {
    question: Object,
    index: Number,
    time: String
  }
}
</script>

<style scoped>
  .text {
    text-align: left;
  }
  .title {
    font-weight: bold;
    color: black;
    font-size: 20px;
  }
</style>